package com.sicong.admin.feign;

import com.sicong.admin.dto.UserInfo;
import com.sicong.common.core.constants.SecurityConstants;
import com.sicong.common.core.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author chenww
 * @date 2020-12-23
 */
@FeignClient(value = "service-admin-biz", path = "/user")
public interface RemoteUserService {

    @GetMapping(value = "/info/{username}")
    Result<UserInfo> info(@PathVariable(value = "username") String username, @RequestHeader(SecurityConstants.SECURITY_INNER) String inner);

}
